//
//  WBUser.swift
//  czWB
//
//  Created by Qing on 2019/1/19.
//  Copyright © 2019年 成哥哥. All rights reserved.
//

import Foundation

/// 单条微博用户模型
@objcMembers class WBUser: NSObject {

    /// 用户UID
    var id: Int64 = 0

    /// 用户昵称
    var screen_name: String?
    
    /// 用户头像地址（中图），50×50像素
    var profile_image_url: String?

    /// 认证类型， -1：没有认证， 0：认证用户， 2，3，5：企业认证， 220：达人
    var verified_type: Int = 0
    
    /// 会员等级0-6
    var mbrank: Int = 0
    
    init(dict: [String: Any]) {
        
        super.init()
        
        setValuesForKeys(dict)
        
    }
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {}
    
    override var description: String {

        let dict = ["id", "screen_name", "profile_image_url", "verified_type", "mbrank"]

        return dictionaryWithValues(forKeys: dict).description

    }
    
}
